package com.engine4cloud.tdf.supervision.dto.create;

import com.engine4cloud.tdf.supervision.dto.result.CreateTimeResultDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 定点签到表
 *
 * @author wenjie
 * @date 2024-09-27 11:39:15
 */
@Data
@Schema(description = "定点签到表")
public class RcglSignPointCreateDTO implements Serializable {

    /**
     * 人员编号
     */
    @Schema(description = "人员编号")
    @NotBlank(message = "人员编号不能为空")
    private String rybh;

    /**
     * 签到类型
     */
    @Schema(description = "签到类型", example = "02")
    @NotBlank(message = "签到类型不能为空")
    private String signType;

    /**
     * 签到时间
     */
    @Schema(description = "签到时间", example = "2024-08-24 14:15:22")
    @NotNull(message = "签到时间不能为空")
    private LocalDateTime signTime;

    /**
     * 签到地址
     */
    @Schema(description = "签到地址")
    @NotBlank(message = "签到地址不能为空")
    private String signAddress;

    /**
     * 经度
     */
    @Schema(description = "经度", example = "119.121246")
    private BigDecimal longitude;

    /**
     * 维度
     */
    @Schema(description = "维度", example = "20.121246")
    private BigDecimal latitude;

}